import { Rectangle } from './Rectangle'

export class Land extends Rectangle {
  /**
   * sky实例的dom元素
   * @param {*} dom 
   */
  constructor(dom) {
    const top = parseFloat(800 - 112)
    super(1600,112,0,488,-70,0,dom)
  }

  onMove() {
    if (this.x <= -800) {
      this.x = 0
    }
  }
}